<?php //echo $this->element('menu'); ?>
<div class="codtrans form">
<?php echo $this->Form->create('Codtran',array('action'=>'add_trans'));
echo $this->Form->input('ComID',array("type"=>'hidden','value'=>$codetails['Codetail']['ComID']));
echo $this->Form->input('Company',array("type"=>'hidden','value'=>$codetails['Codetail']['ComName']));
echo $this->Form->input('Code',array("type"=>'hidden','value'=>$codetails['Codetail']['Code']));
echo $this->Form->input('return_page',array("type"=>'hidden','value'=>'view'));
echo $this->Form->input('Holding',array("type"=>"hidden"));
echo $this->Form->input('director_id',array("type"=>"hidden","value"=>$codetails['Codexec']['director_id']));
?>

<table cellpadding="0" cellspacing="0">
<tr>
<td width="210"><?php echo $this->Form->input('Date',array('minYear' => '1950','maxYear' => date("Y"),'dateFormat' => 'DMY')); ?></td>
<td width="160">
<?php echo $this->Form->input('Name', array('label'=>'Director Name',"value"=>$codetails['Codexec']['Name']));?>
</td>
<td><?php echo $this->Form->input('Transaction');?></td>
<td><?php echo $this->Form->input('Number');?></td>
<td><?php echo $this->Form->input('Price',array('onfocus'=>"calculatePrice(0);"));?></td>
<td><?php echo $this->Form->input('Value',array('onfocus'=>"calculateValue(0);"));?></td>
</tr>
</table>
<?php echo $this->Form->end(__('Add', true));?>
</div>